<%--
  Created by IntelliJ IDEA.
  User: ASUS
  Date: 2021/2/17
  Time: 16:15
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <table border="1px">
        <tr>
            <th>学生编号</th>
            <th>学生姓名</th>
            <th>学生年龄</th>
            <th>操作</th>
        </tr>
        <c:forEach items="${students }" var="student">
            <tr>
                <td>${student.id }</td>
                <td>${student.name }</td>
                <td>${student.age }</td>
                <td>
                    <a href="/index/update_page/${student.id }">修改</a>
                    <a href="/index/delete/${student.id }">删除</a>
                </td>
            </tr>
        </c:forEach>
    </table>
    <a href="/insert.jsp">添加学生信息</a>
</body>
</html>
